package com.wnxy.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Employee implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer id; // 员工编号
    private String tno; // 工号
    private String name; // 姓名
    private String gender; //性别
    private Date birthday; // 生日
    private String title; // 职称
    private BigDecimal salary; // 薪资
    private String image; //员工的头像
    private Integer managerId; // 直属领导编号manager_id
    private Integer deptId; // 部门编号 dept_id

    public Employee() {
    }

    public Employee(Integer id, String tno, String name, String gender, Date birthday, String title, BigDecimal salary, String image, Integer managerId, Integer deptId) {
        this.id = id;
        this.tno = tno;
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.title = title;
        this.salary = salary;
        this.image = image;
        this.managerId = managerId;
        this.deptId = deptId;
    }

    public Employee(String tno, String name, String gender, Date birthday, String title, BigDecimal salary, String image, Integer managerId, Integer deptId) {
        this.tno = tno;
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.title = title;
        this.salary = salary;
        this.image = image;
        this.managerId = managerId;
        this.deptId = deptId;
    }

    public Employee(String tno, String name, String gender) {
        this.tno = tno;
        this.name = name;
        this.gender = gender;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTno() {
        return tno;
    }

    public void setTno(String tno) {
        this.tno = tno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getManagerId() {
        return managerId;
    }

    public void setManagerId(Integer managerId) {
        this.managerId = managerId;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", tno='" + tno + '\'' +
                ", name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", birthday=" + birthday +
                ", title='" + title + '\'' +
                ", salary=" + salary +
                ", image='" + image + '\'' +
                ", managerId=" + managerId +
                ", deptId=" + deptId +
                '}';
    }
}
